package com.ruoyi.merchant.activities.mapper;

import java.util.List;
import com.ruoyi.merchant.activities.domain.MerchantActivities;
import org.apache.ibatis.annotations.Mapper;

/**
 * 商家活动Mapper接口
 * 
 * @author zx
 * @date 2025-09-14
 */
@Mapper
public interface MerchantActivitiesMapper 
{
    /**
     * 查询商家活动
     * 
     * @param id 商家活动主键
     * @return 商家活动
     */
    public MerchantActivities selectMerchantActivitiesById(Integer id);

    /**
     * 查询商家活动列表
     * 
     * @param merchantActivities 商家活动
     * @return 商家活动集合
     */
    public List<MerchantActivities> selectMerchantActivitiesList(MerchantActivities merchantActivities);

    /**
     * 新增商家活动
     * 
     * @param merchantActivities 商家活动
     * @return 结果
     */
    public int insertMerchantActivities(MerchantActivities merchantActivities);

    /**
     * 修改商家活动
     * 
     * @param merchantActivities 商家活动
     * @return 结果
     */
    public int updateMerchantActivities(MerchantActivities merchantActivities);

    /**
     * 删除商家活动
     * 
     * @param id 商家活动主键
     * @return 结果
     */
    public int deleteMerchantActivitiesById(Integer id);

    /**
     * 批量删除商家活动
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMerchantActivitiesByIds(Integer[] ids);
    //关联店铺
    public List<MerchantActivities> selectByShopAndAuditStatus(MerchantActivities merchantActivities);
}
